package com.zxy.leetcode.lcci;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * https://leetcode-cn.com/problems/hanota-lcci/
 *
 * 汉诺塔问题
 */
public class Test0806 {

    public static void main(String[] args) {
        Test0806 test = new Test0806();
        List<Integer> A = Arrays.asList(2, 1, 0);
        List<Integer> B = new ArrayList<>();
        List<Integer> C = new ArrayList<>();
        test.hanota(A, B, C);
    }

    // 面向答案编程
    public void hanota(List<Integer> A, List<Integer> B, List<Integer> C) {
        C.addAll(A);
        A.clear();
    }

}
